package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单服务类型业务对象 p_service_type
 *
 * @author ruoyi
 * @date 2022-07-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("订单服务类型业务对象")
public class PServiceTypeBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 价钱
     */
    @ApiModelProperty(value = "价钱", required = true)
    @NotNull(message = "价钱不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 服务时间
     */
    @ApiModelProperty(value = "服务时间", required = true)
    @NotBlank(message = "服务时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceTime;

    /**
     * 服务优惠
     */
    @ApiModelProperty(value = "服务优惠", required = true)
    @NotBlank(message = "服务优惠不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceTag;


}
